﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OrdersMerge.aspx.cs" Inherits="WinnerCMS.WebUI.Admin.Shop.OrdersMerge" %>

<%@ Register src="../UC_AjaxLoading.ascx" tagname="UC_AjaxLoading" tagprefix="uc1" %>

<!doctype html>
<html>
<head runat="server">
    <title>订单合并</title>
    <meta charset="utf-8"/>
    <meta http-equiv="Pragma" content="no-cache"/>
    <%: Scripts.Render("~/Scripts/AdminBase") %>
    <%: Styles.Render("~/Content/Bootstrap/css") %>
</head>
<body>
<form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <uc1:UC_AjaxLoading ID="UC_AjaxLoading1" runat="server"/>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table style="width: 98%;" border="0" cellpadding="4" cellspacing="0" id="NavigationPath">
                <tr>
                    <td style="width: auto">
                        <asp:Label ID="lblPath" runat="server"></asp:Label>
                    </td>
                    <td style="text-align: right; width: auto;">

                    </td>
                </tr>
            </table>
            <table style="width: 100%;" class="TabelGrid">
                <tr>
                    <td class="RowTitle">
                        用户名：
                    </td>
                    <td>
                        <asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
                        &nbsp;
                        <asp:Button ID="btnSearchMember" runat="server" Text="搜索" Cssclass="btn btn-default"
                                    onclick="btnSearchMember_Click" ValidationGroup="Search"/>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                                                    ControlToValidate="txtKey" ErrorMessage="请输入" ValidationGroup="Search">
                        </asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        选择用户：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlMember" runat="server" AutoPostBack="True"
                                          onselectedindexchanged="ddlMember_SelectedIndexChanged">
                            <asp:ListItem>&lt;请选择&gt;</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        主订单：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlOrdersZ" runat="server">
                            <asp:ListItem>&lt;请选择&gt;</asp:ListItem>
                        </asp:DropDownList>
                        <asp:CompareValidator ID="CompareValidator1" runat="server"
                                              ControlToValidate="ddlOrdersZ" ErrorMessage="不能选取相同的订单"
                                              ControlToCompare="ddlOrdersC" Operator="NotEqual">
                        </asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        从订单：
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlOrdersC" runat="server">
                            <asp:ListItem>&lt;请选择&gt;</asp:ListItem>
                        </asp:DropDownList>
                        <asp:CompareValidator ID="CompareValidator2" runat="server"
                                              ControlToCompare="ddlOrdersZ" ErrorMessage="不能选取相同的订单"
                                              ControlToValidate="ddlOrdersC" Operator="NotEqual">
                        </asp:CompareValidator>
                    </td>
                </tr>
                <tr>
                    <td class="RowTitle">
                        说明：
                    </td>
                    <td>
                        只显示状态一样的订单
                    </td>
                </tr>
            </table>
            <div style="margin-left: auto; margin-right: auto; margin-top: 50px; text-align: center; width: 600px;">
                <asp:Button ID="btnOK" runat="server" Text="确定" Cssclass="btn btn-default"
                            onclick="btnOK_Click" onclientclick=" return confirm('注意，合并后将不可恢复！'); "/>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</form>
</body>
</html>